<?php
class help extends BaseAction {

	public function _default(){
		echo verbose_message("== Usage:");
	}
	
	public function update(){
		echo verbose_message("== Updating scripts:");
		// rsync or svn export $basepath/scripts in accordance with project's local config.php
		echo verbose_message("== Syncing scripts/ from {$GLOBALS['svn_server']} > {$GLOBALS['scripts_path']}");
		$auth_str = ($GLOBALS['svn_username']!="") ? "--username {$GLOBALS['svn_username']} " : "";
		$auth_str .= ($GLOBALS['svn_password']!="") ? "--password {$GLOBALS['svn_password']} " : "";
		System("svn export {$GLOBALS['svn_server']}{$GLOBALS['scripts_path']} ./scripts/ --force $auth_str");
	}
	
	public function backup(){
		// tarball server and copy to remote directory in accordance with project's local config.php
		
	}
	
	
}